package com.antdesignbackend.backend.news.notice.mapper;

import com.antdesignbackend.backend.news.notice.entity.Notice;
import com.antdesignbackend.backend.news.notice.entity.entityVo.NoticeVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;


/**
 * 公告管理
 * @author 不二
 * @email notice
 * @date 2020-07-25 18:11:33
 */

@Component
public interface NoticeMapper extends BaseMapper<Notice>{
    List<NoticeVo> search(@Param(Constants.WRAPPER) QueryWrapper<NoticeVo> wrapper, Page<NoticeVo> page);
    Integer count(@Param(Constants.WRAPPER) QueryWrapper<NoticeVo> wrapper);
}
